package org.sky.logger.http.support;

import java.net.URLConnection;

import org.sky.logger.http.AbstractHttpHeadType;

/**
 * jdk URLConnection 头部类型
 * 
 * @author gaofu
 *
 */
public class URLConnetionHeadType extends AbstractHttpHeadType<URLConnection> {

	public Class<URLConnection> headType() {
		return URLConnection.class;
	}

	public boolean addHeader(URLConnection head, String key, String value) {
		head.setRequestProperty(key, value);
		return true;
	}

}
